package com.xc.c1

object myLazy {
  def main(args: Array[String]): Unit = {
    lazy val sum1 = sum(1, 2)
    println("----------------")
    println("sum = " + sum1)
  }

  def sum(n1: Int, n2: Int): Int = {
    println("do n1 + n2")
    n1 + n2
  }

}
